// pages/bailiang/bailiang.js

var waibubianliang = "外部变量"
var shuru = ""

Page({

  
  
  onLoad () {
      var name = "名字";
      var age = "萨达所";
      var test = "安生发放说的"; 

      console.log(name,age,test);

  },

  textChange(content) {
    shuru = content.detail.value
    waibubianliang = "输入修改了外部变量"
  },

  // 按钮点击
  buttonClick () {
    console.log(waibubianliang,shuru);
  }

  

})